package com.wei.czz.framework.admin.dao;

import com.wei.czz.framework.admin.entity.UserLoginEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2024-06-10 11:07:17
 * className: UserLoginDao
 * version: 1.0
 * description:
 */
public interface UserLoginDao extends BaseMapper<UserLoginEntity> {

    /**
     * 查询在线用户数量
     * @param expireTime   过期时间
     * @param status       登录状态
     * @param deleteStatus 删除状态
     * @return 在线用户数量
     */
    long selectLineCount(@Param("expireTime") Long expireTime, @Param("status") Integer status,
                         @Param("deleteStatus") Integer deleteStatus);
}
